// wxSamplePGrid.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "wx/wx.h"


#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/props.h>
class PGridFrame:public wxFrame
{
public :
	PGridFrame():wxFrame(NULL,wxID_ANY,wxT("Property Grid")){
		wxPropertyGrid* pg=new wxPropertyGrid(this);
        wxGridSizer* sizer=new wxGridSizer(1,1);
		sizer->Add(pg,wxSizerFlags().Expand());
		this->SetSizer(sizer);

		wxIntProperty* proInt=new wxIntProperty(wxT("OK"),wxT("Sample"),100);
		pg->Append(proInt);
		pg->Update();
	}

};
class PGridApp:public wxApp
{
public:
	virtual bool OnInit()
	{
      PGridFrame* frame=new PGridFrame();
	  frame->Show(true);
	  return true;
	}
};
DECLARE_APP(PGridApp);
IMPLEMENT_APP(PGridApp);
